﻿using Factory;
using IDAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class B_Taste : ITaste
    {
        public void Add(Taste item)
        {
            CreateFactory.GetTaste().Add(item);
        }

        public void Delete(int id)
        {
            CreateFactory.GetTaste().Delete(id);
        }

        public Taste FindById(int id)
        {
            return CreateFactory.GetTaste().FindById(id);
        }

        public List<Taste> GetAll()
        {
            return CreateFactory.GetTaste().GetAll();
        }

        public void Updata(int id, Taste item)
        {
            CreateFactory.GetTaste().Updata(id, item);
        }
    }
}
